package cn.accp.war.baseEntity;

//英雄
public abstract class Hero {
	// 英雄名
	private String name;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	// 法力值
	private int magic;

	/**
	 * @return the magic
	 */
	public int getMagic() {
		return magic;
	}

	/**
	 * @param magic
	 *            the magic to set
	 */
	public void setMagic(int magic) {
		if (magic > 0) {
			this.magic = magic;
		}
	}

	public Hero() {
	}

	public Hero(String name, int magic) {
		this.name = name;
		setMagic(magic);
	}

	public Hero(Hero hero) {
		this.name = hero.name;
		this.magic = hero.magic;
	}

	public abstract void attack();

	public abstract void run();

	public abstract void jump();

	public abstract void walk();

	public abstract void showMe();
}
